apt build-dep emacs -y
export build_dir=../emacs_build
mkdir -p $build_dir && cd $build_dir

file_path="emacs-29.4.tar.xz"
if [ -e $file_path  ]; then
    echo "文件存在"
else
    echo "文件不存在"
    wget -c https://mirrors.nju.edu.cn/gnu/emacs/emacs-29.4.tar.xz
fi
tar xvf emacs-29.4.tar.xz
cd $build_dir/emacs-29.4
./configure --with-gif\
			--with-png\
			--with-jpeg\
			--with-rsvg\
			--with-tiff\
			--with-imagemagick\
			--with-x-toolkit=lucid\
			--with-json\
			--with-mailutils
make -j8
make install
